import request from '@/utils/request'

// 查询定额定量列表
export function listTroubleShooting(query) {
  return request({
    url: '/cases/troubleshootingTable/list',
    method: 'get',
    params: query
  })
}

// 查询定额定量详细
export function getTroubleShooting(id) {
  return request({
    url: '/cases/troubleshootingTable/' + id,
    method: 'get'
  })
}

// 新增定额定量
export function addTroubleShooting(data) {
  return request({
    url: '/cases/troubleshootingTable',
    method: 'post',
    data: data
  })
}

// 修改定额定量
export function updateTroubleShooting(data) {
  return request({
    url: '/cases/troubleshootingTable',
    method: 'put',
    data: data
  })
}

// 删除定额定量
export function delTroubleShooting(id) {
  return request({
    url: '/cases/troubleshootingTable/' + id,
    method: 'delete'
  })
}
/**
 * 获取审核人
 * @param {*} deptId 
 * @returns 
 */
export function getAuditUser(deptId){
  return request({
    url:"/cases/troubleshootingTable/getAuditMsg?deptId=" + deptId,
    method:"post"
  })
}